package com.haiyou.dc.es.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.*;
import java.io.Serializable;

import java.util.Date;

/**
 * 预约看房信息表
 *
 * @author Administrator
 * @date 2020-01-20 16:11:34
 */
@ApiModel(value = "预约看房信息表")
@Data
@Accessors(chain = true)
@Table(name = "es_house_subscribe")
public class EsHouseSubscribe implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @ApiModelProperty(value = "id", name = "id")
    private Integer id;

    /**
     * 房源id
     */
    @Column(name = "house_id")
    @ApiModelProperty(value = "房源id", name = "houseId")
    private Integer houseId;

    /**
     * 用户id
     */
    @Column(name = "user_id")
    @ApiModelProperty(value = "用户id", name = "userId")
    private Integer userId;

    /**
     * 用户描述
     */
    @Column(name = "desc")
    @ApiModelProperty(value = "用户描述", name = "desc")
    private String desc;

    /**
     * 预约状态 1-加入待看清单 2-已预约看房时间 3-看房完成
     */
    @Column(name = "status")
    @ApiModelProperty(value = "预约状态 1-加入待看清单 2-已预约看房时间 3-看房完成", name = "status")
    private Integer status;

    /**
     * 数据创建时间
     */
    @Column(name = "create_time")
    @ApiModelProperty(value = "数据创建时间", name = "createTime")
    private Date createTime;

    /**
     * 记录更新时间
     */
    @Column(name = "last_update_time")
    @ApiModelProperty(value = "记录更新时间", name = "lastUpdateTime")
    private Date lastUpdateTime;

    /**
     * 预约时间
     */
    @Column(name = "order_time")
    @ApiModelProperty(value = "预约时间", name = "orderTime")
    private Date orderTime;

    /**
     * 联系电话
     */
    @Column(name = "telephone")
    @ApiModelProperty(value = "联系电话", name = "telephone")
    private String telephone;

    /**
     * 房源发布者id
     */
    @Column(name = "admin_id")
    @ApiModelProperty(value = "房源发布者id", name = "adminId")
    private Integer adminId;

}
